<html xmlns:th="http://www.thymeleaf.org">
<!--/*@thymesVar id="baseConfigForm" type="com.bean.BaseConfig"*/-->
<div class="bjui-row col-1" th:fragment="form">
    <label class="row-label">客户端</label>
    <div class="row-input required">
        <select name="clientId" data-toggle="selectpicker" data-rule="required">
            <option style="width:300px;height:100%" value="">请选择</option>
            <option th:each="client : ${clientList}"
                    th:value="${client.id}" th:text="${client.name}" th:selected="${client.id}==${deviceClientForm.id}">
            </option>
        </select>
    </div>

    <label class="row-label">虚拟机名</label>
    <div class="row-input required">
        <input type="text" name="virtualName" style="width:400px;" th:value="${deviceVirtualForm.virtualName}" data-rule="required">
    </div>

    <label class="row-label">虚拟机mac</label>
    <div class="row-input ">
        <input type="text" name="virtualMac" style="width:400px;" th:value="${deviceVirtualForm.virtualMac}">
    </div>

    <label class="row-label">任务命令</label>
    <div class="row-input required">
        <select name="taskCmd" data-toggle="selectpicker" data-rule="required">
            <option style="width:300px;height:100%" value="">请选择</option>
            <option th:each="cmd,stat : ${taskCmdList}"
                    th:value="${cmd.code}" th:text="${cmd.display}"
                    th:selected="${cmd.code}==${deviceVirtualForm.taskCmd.code}">
            </option>
        </select>
    </div>
    <label class="row-label">任务状态</label>
    <div class="row-input required">
        <select name="taskState" data-toggle="selectpicker" data-rule="required">
            <option style="width:300px;height:100%" value="">请选择</option>
            <option th:each="taskStat : ${taskStateList}"
                    th:value="${taskStat.code}" th:text="${taskStat.display}"
                    th:selected="${taskStat.code}==${deviceVirtualForm.taskState.code}">
            </option>
        </select>
    </div>

    <label class="row-label">状态</label>
    <div class="row-input required">
        <select name="state" data-toggle="selectpicker" data-rule="required">
            <option style="width:300px;height:100%" value="">请选择</option>
            <option th:each="status,statusStat : ${statusList}"
                    th:value="${status.code}" th:text="${status.display}"
                    th:selected="${status.code}==${deviceVirtualForm.state.code}">
            </option>
        </select>
    </div>


</div>

